import request from '@/utils/request'

// 查询易滥用毒品场所列表
export function listElyd(query) {
  return request({
    url: '/place/elyd/list',
    method: 'get',
    params: query
  })
}

// 查询易滥用毒品场所详细
export function getElyd(elydId) {
  return request({
    url: '/place/elyd/' + elydId,
    method: 'get'
  })
}

// 新增易滥用毒品场所
export function addElyd(data) {
  return request({
    url: '/place/elyd',
    method: 'post',
    data: data
  })
}

// 修改易滥用毒品场所
export function updateElyd(data) {
  return request({
    url: '/place/elyd',
    method: 'put',
    data: data
  })
}

// 删除易滥用毒品场所
export function delElyd(elydId) {
  return request({
    url: '/place/elyd/' + elydId,
    method: 'delete'
  })
}
